\hypertarget{class_double_array}{\section{Double\+Array类 参考}
\label{class_double_array}\index{Double\+Array@{Double\+Array}}
}


浮点型数组类  




{\ttfamily \#include $<$Array.\+h$>$}

类 Double\+Array 继承关系图\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_double_array}
\end{center}
\end{figure}
\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_double_array_a260af75f1728ea6b65789f917c3330f6}{Double\+Array} ()
\begin{DoxyCompactList}\small\item\em 浮点型数组构造函数 \end{DoxyCompactList}\item 
\hyperlink{class_double_array_a3f3132c19707700005543ade72d7754b}{$\sim$\+Double\+Array} ()
\begin{DoxyCompactList}\small\item\em 浮点型数组析构函数 \end{DoxyCompactList}\item 
bool \hyperlink{class_double_array_aab27c08caf605f294a106acdda1416bb}{init\+With\+String} (const string \&array\+String)
\begin{DoxyCompactList}\small\item\em 从格式化的字符串中初始化数组 \end{DoxyCompactList}\item 
string \hyperlink{class_double_array_aaa0261285b343070de006dc0ac39ef64}{serialize} ()
\begin{DoxyCompactList}\small\item\em 序列化字符串数组 \end{DoxyCompactList}\item 
int \hyperlink{class_double_array_a53c441cbbe36c61fc7f31ba8592feb33}{size} ()
\begin{DoxyCompactList}\small\item\em 获取数组大小 \end{DoxyCompactList}\item 
int \hyperlink{class_double_array_a7a9197141db72afa7945cb076a62e21f}{type} ()
\begin{DoxyCompactList}\small\item\em 获取类型 \end{DoxyCompactList}\item 
void \hyperlink{class_double_array_a95db6bc6b85d81c19cc910d2f2219b00}{clear} ()
\begin{DoxyCompactList}\small\item\em 清空数组 \end{DoxyCompactList}\item 
double \& \hyperlink{class_double_array_a260272f5ea904f0c2c3bf0e5eef29d17}{operator\mbox{[}$\,$\mbox{]}} (int idx)
\begin{DoxyCompactList}\small\item\em \mbox{[}\mbox{]}运算符重载,获取数组元素 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{友元}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_double_array}{Double\+Array} \& \hyperlink{class_double_array_add0efbf9b528f85c208251b4c4bffef6}{operator$<$$<$} (\hyperlink{class_double_array}{Double\+Array} \&, double)
\begin{DoxyCompactList}\small\item\em $<$$<$运算符重载,实现给数组添加元素 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
浮点型数组类 

\subsection{构造及析构函数说明}
\hypertarget{class_double_array_a260af75f1728ea6b65789f917c3330f6}{\index{Double\+Array@{Double\+Array}!Double\+Array@{Double\+Array}}
\index{Double\+Array@{Double\+Array}!Double\+Array@{Double\+Array}}
\subsubsection[{Double\+Array}]{\setlength{\rightskip}{0pt plus 5cm}Double\+Array\+::\+Double\+Array (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_double_array_a260af75f1728ea6b65789f917c3330f6}


浮点型数组构造函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}
\hypertarget{class_double_array_a3f3132c19707700005543ade72d7754b}{\index{Double\+Array@{Double\+Array}!````~Double\+Array@{$\sim$\+Double\+Array}}
\index{````~Double\+Array@{$\sim$\+Double\+Array}!Double\+Array@{Double\+Array}}
\subsubsection[{$\sim$\+Double\+Array}]{\setlength{\rightskip}{0pt plus 5cm}Double\+Array\+::$\sim$\+Double\+Array (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_double_array_a3f3132c19707700005543ade72d7754b}


浮点型数组析构函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}


\subsection{成员函数说明}
\hypertarget{class_double_array_a95db6bc6b85d81c19cc910d2f2219b00}{\index{Double\+Array@{Double\+Array}!clear@{clear}}
\index{clear@{clear}!Double\+Array@{Double\+Array}}
\subsubsection[{clear}]{\setlength{\rightskip}{0pt plus 5cm}void Double\+Array\+::clear (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_double_array_a95db6bc6b85d81c19cc910d2f2219b00}


清空数组 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_double_array_aab27c08caf605f294a106acdda1416bb}{\index{Double\+Array@{Double\+Array}!init\+With\+String@{init\+With\+String}}
\index{init\+With\+String@{init\+With\+String}!Double\+Array@{Double\+Array}}
\subsubsection[{init\+With\+String}]{\setlength{\rightskip}{0pt plus 5cm}bool Double\+Array\+::init\+With\+String (
\begin{DoxyParamCaption}
\item[{const string \&}]{array\+String}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_double_array_aab27c08caf605f294a106acdda1416bb}


从格式化的字符串中初始化数组 


\begin{DoxyParams}{参数}
{\em array\+String} & 格式化字符串,例如\+:\mbox{[}0.\+123,1.\+234,2.\+345\mbox{]} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回true,失败返回false 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_double_array_a260272f5ea904f0c2c3bf0e5eef29d17}{\index{Double\+Array@{Double\+Array}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!Double\+Array@{Double\+Array}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}double \& Double\+Array\+::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{int}]{idx}
\end{DoxyParamCaption}
)}}\label{class_double_array_a260272f5ea904f0c2c3bf0e5eef29d17}


\mbox{[}\mbox{]}运算符重载,获取数组元素 


\begin{DoxyParams}{参数}
{\em idx} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回索引为idx的数组元素 
\end{DoxyReturn}
\hypertarget{class_double_array_aaa0261285b343070de006dc0ac39ef64}{\index{Double\+Array@{Double\+Array}!serialize@{serialize}}
\index{serialize@{serialize}!Double\+Array@{Double\+Array}}
\subsubsection[{serialize}]{\setlength{\rightskip}{0pt plus 5cm}string Double\+Array\+::serialize (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_double_array_aaa0261285b343070de006dc0ac39ef64}


序列化字符串数组 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回格式化字符串\+:\mbox{[}0.\+123,1.\+234,2.\+345\mbox{]} 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_double_array_a53c441cbbe36c61fc7f31ba8592feb33}{\index{Double\+Array@{Double\+Array}!size@{size}}
\index{size@{size}!Double\+Array@{Double\+Array}}
\subsubsection[{size}]{\setlength{\rightskip}{0pt plus 5cm}int Double\+Array\+::size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_double_array_a53c441cbbe36c61fc7f31ba8592feb33}


获取数组大小 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回数组大小(元素个数) 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.

\hypertarget{class_double_array_a7a9197141db72afa7945cb076a62e21f}{\index{Double\+Array@{Double\+Array}!type@{type}}
\index{type@{type}!Double\+Array@{Double\+Array}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}int Double\+Array\+::type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_double_array_a7a9197141db72afa7945cb076a62e21f}


获取类型 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
B\+A\+S\+E\+T\+Y\+P\+E\+\_\+\+D\+O\+U\+B\+L\+E\+A\+R\+R\+A\+Y 
\end{DoxyReturn}


实现了 \hyperlink{class_array}{Array}.



\subsection{友元及相关函数文档}
\hypertarget{class_double_array_add0efbf9b528f85c208251b4c4bffef6}{\index{Double\+Array@{Double\+Array}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!Double\+Array@{Double\+Array}}
\subsubsection[{operator$<$$<$}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Double\+Array}\& operator$<$$<$ (
\begin{DoxyParamCaption}
\item[{{\bf Double\+Array} \&}]{array, }
\item[{double}]{value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [friend]}}}\label{class_double_array_add0efbf9b528f85c208251b4c4bffef6}


$<$$<$运算符重载,实现给数组添加元素 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回数组 
\end{DoxyReturn}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_array_8h}{Array.\+h}\item 
libemb/src/Array.\+cpp\end{DoxyCompactItemize}
